<?php


namespace Develop\Jwt;

use Redis;

class RedisMode
{
    private $redis;

    public function __construct($config)
    {
        $this->redis = new Redis();
        $this->redis->connect($config['host'], $config['port']);
        $this->redis->auth($config['password']);
    }

    public function redisObj()
    {
        return $this->redis;
    }
}